package com.lris.dto;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serial;
import java.io.Serializable;


/**
 * @Package: com.lris.pojo
 * @Author lris
 * @CreateDate 2023-09-10 01:55:40
 * @describe 实体类
 */
@Data
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor //提供所有参数的构造方法
@NoArgsConstructor//提供没有参数的构造方法
@Schema
public class PhoneLoginDto implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;


    /**
     * 手机号
     */
    @NotNull(message = "手机号不能为空")
    @Schema(description  = "手机号",example = "18888888888")
    private String phone;

    /**
     * 密码
     */
    @NotNull(message = "验证码不能为空")
    @Schema(description  = "验证码",example = "8888")
    private String code;


}